package com.hjy.cabinet.ws.domain.ws;


public class WebSocketRequest {

    private String methodName;
    private Object[] args;
    //填空就是发送所有客户端，广播
    private String clientIp;

    private String connId;

    public static WebSocketRequest create( String methodName,  Object[] args , String clientIp) {

        WebSocketRequest request = new WebSocketRequest();
        request.setMethodName(methodName);
        request.setClientIp(clientIp);
        request.setArgs(args);
        return request;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getConnId() {
        return connId;
    }

    public void setConnId(String connId) {
        this.connId = connId;
    }
}
